//
//  CLMainRowController.m
//  chanlin
//
//  Created by Ryan on 15-5-10.
//  Copyright (c) 2015年 chanlin. All rights reserved.
//

#import "CLMainRowController.h"

@implementation CLMainRowController


- (void)setImgUrlString:(NSString *)urlString{
    if(!urlString || urlString.length<5) return;
    [self performSelectorInBackground:@selector(requestImg:) withObject:urlString];
    
}

- (void)requestImg:(NSString *)url{
    UIImage *image=[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:url]]];
    if(image){
        if(self.imgGroup38){
            [self.imgGroup38 performSelectorOnMainThread:@selector(setBackgroundImage:) withObject:image waitUntilDone:NO];
        }else if(self.imgGroup){
            [self.imgGroup performSelectorOnMainThread:@selector(setBackgroundImage:) withObject:image waitUntilDone:NO];
        }
    }
    
}


@end
